import java.util.*;
public class intToTwo{
    public static void main(String[] args) {
		int number;
		int bit;
		String str = "";
		
		System.out.println("请输入一个整数：");
		Scanner s = new Scanner(System.in);
		number = s.nextInt();
		
		if(number >= 0){
			while(number>0)
			{
				bit = number%2;
				number /= 2;
				str = bit + str;
			}
			while(str.length()<32)
				str = '0' + str;
		}
		else{
			number *= -1;			
			String temp = "";		
			while(number>0)
			{
				bit = number%2;
				number /= 2;
				if(bit == 1)		
					bit = 0;
				else					
					bit = 1;
				temp = bit + temp;
			}
			for(int i = temp.length(); i >0;i--){	
				if(temp.charAt(i-1) == '1')
					str = '0' + str;
				else{
					str = '1' + str;
					break;
				}
			}
			for(int i = temp.length()-str.length()-1; i >= 0 ;i--){	
				str = temp.charAt(i) + str;
			}
			while(str.length()<32)	
				str = '1' + str;
		}
		System.out.println("二进制数为："+str);
		s.close();
    }
}